﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>@ViewBag.Title</title>
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <meta name="description" content="@ViewBag.Description" />
    <meta name="title" content="@ViewBag.Title" />
    <meta name="keywords" content="@ViewBag.Keywords" />
    @Styles.Render("~/Content/bundledcss")


</head>
<body>
    <div class="body-bg" id="bodydesk">
        <div class="container" id="wrapper">
            <header id="divheader">
                <div class="navbar-header">
                    @{ if (Session[HomeCareLibrary.Constants.SessionConstants.PROMO_CODE] != null && Session[HomeCareLibrary.Constants.SessionConstants.PROMO_CODE].ToString().Trim() != "")
                       {
                        <a class="navbar-brand web-logo" href="@Url.Action("Welcome", "Home")"></a>
                       }}
                    <a class="logo-top logo-topmargin" href="@Url.Action("Welcome", "Home")">
                        <img class="img-responsive" alt="" src="@Url.Content("~/images/logo.png")"></a>
                </div>

                <div class="header-right pull-right header-andy">
                    @* <div class="data_button dropdown">
                        <button data-toggle="dropdown" class=" data_arrow  " type="button" id="btndropdownTop"></button>
                        <div class="dropdown-menu" role="menu" aria-labelledby="dLabel">
                            <div class="visible-phone sponsor_data">

                                @Html.Action("DisplayUserName", "Home", new { ID = "15" })
                            </div>
                        </div>

                    </div>*@




                    @{ if (Session[HomeCareLibrary.Constants.SessionConstants.PROMO_CODE] != null && Session[HomeCareLibrary.Constants.SessionConstants.PROMO_CODE].ToString().Trim() != "")
                       {
                           Html.RenderPartial("SponsorDetail");
                       }
                       else
                       {
                        <div class="web-logoRight">
                            <a href="@Url.Action("Welcome", "Home")"></a>
                        </div>
                       }}

                </div>
            </header>



            @if (Session[HomeCareLibrary.Constants.SessionConstants.USER_ID] != null && Session[HomeCareLibrary.Constants.SessionConstants.USER_ID].ToString() != "-1")
            {
                <div class="login">
                    <!--<div class="pull-left left-logo-top">home wizard <span>Personal Home Manager</span> </div>-->
                    <div class="right-login-content">
                        <div class="btn-group">
                            <ul class="list-unstyled list-inline loginbtn">
                                <li>


                                    @using (Html.BeginForm("LogOut", "Home", FormMethod.Post, new { id = "logOffForm" }))
                                    {
                                        <a title="logout" class="ui-link" href="javascript:document.getElementById('logOffForm').submit()" id="lnkLogout">logout</a>
                                    }

                                </li>

                            </ul>
                        </div>

                        @{
                                    if (Session[HomeCareLibrary.Constants.SessionConstants.USER_NAME] != null)
                                    {
                                        string getUserName = @Session[HomeCareLibrary.Constants.SessionConstants.USER_NAME].ToString();
                                        string[] splitUserName = getUserName.Split('@');
                            <div class="welcome-user">Welcome @splitUserName[0]</div>
                            
                                    }
                        }


                    </div>
                </div>
            }
            else
            { 
                <div class="login">
                    <div class="btn-group" id="divLogin">
                        <ul class="list-unstyled list-inline loginbtn">
                            <li><a title="login" href="@Url.Action("Login", "Home")" class="ui-link">login</a></li>
                            <li><a title="setup" href="@Url.Action("Initialsetup", "Home")" class="ui-link">setup</a></li>
                            <li><a title="about" href="@Url.Action("About", "Home")" class="ui-link">about</a></li>
                        </ul>
                    </div>
                </div> 
            }



            <div class="content">
                <div class="row content-inn">

                    @*left not show in case of Android App. *@
                    @if (Session[HomeCareLibrary.Constants.SessionConstants.MODE] == null || Session[HomeCareLibrary.Constants.SessionConstants.MODE] == HomeCareLibrary.Constants.ApplicationModeConstants.IPHONE_APP || Session[HomeCareLibrary.Constants.SessionConstants.MODE] == HomeCareLibrary.Constants.ApplicationModeConstants.IPAD_APP)
                    { 
                        <div class="col-lg-3 col-sm-3 left-part">
                            <nav class="navbar navbar-default main-navbar" role="navigation">
                                <!-- Brand and toggle get grouped for better mobile display -->
                                <div class="navbar-header">
                                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
                                        <img src="@Url.Content("~/images/navigation.png")" title="" alt="navigation">
                                    </button>

                                </div>

                                <!-- Collect the nav links, forms, and other content for toggling -->
                                <div class="menu collapse navbar-collapse navbar-ex1-collapse">

                                    @if (Session[HomeCareLibrary.Constants.SessionConstants.USER_ID] != null && Session[HomeCareLibrary.Constants.SessionConstants.USER_ID].ToString() != "-1")
                                    {
                                        <ul class="nav navbar-nav" id="ulLeftNav">
                                            <li class="menu-mobile-heading">
                                                <h3>Main Sections</h3>
                                            </li>
                                            <li id="tasksLI"><a id="tasks" class="ui-link" href="javascript:void(0);"><span class="task-link"></span>@*class="active"*@
                                                <p>Tasks </p>
                                            </a>
                                            </li>
                                            <li id="tipsLI"><a id="tips" class="ui-link" href="javascript:void(0);"><span class="tips-link"></span>
                                                <p>Tips</p>
                                            </a>
                                            </li>
                                            <li id="ideasLI"><a id="ideas" class="ui-link" href="javascript:void(0);"><span class="ideas-link"></span>
                                                <p>Ideas</p>
                                            </a>
                                            </li>
                                            <li id="extrasLI"><a id="extras" class="ui-link" href="javascript:void(0);"><span class="extra-link"></span>
                                                <p>Extras</p>
                                            </a>
                                            </li>

                                            <li id="adminLI"><a id="admin" class="ui-link" href="javascript:void(0);"><span class="admin-link"></span>
                                                <p>Admin</p>
                                            </a>
                                            </li>
                                            <li class="menu-mobile-heading">
                                                <h3>Get Started</h3>
                                            </li>

                                            <li class="menu-mobile-show"><a class="ui-link" href="#">
                                                <p>Login</p>
                                            </a>
                                            </li>

                                            <li class="menu-mobile-show"><a class="ui-link" href="#">
                                                <p>Sign-up</p>
                                            </a>
                                            </li>
                                            <li class="menu-mobile-show"><a class="ui-link" href="#">
                                                <p>About</p>
                                            </a>
                                            </li>


                                        </ul>
                                    }
                                    <div class="application-add no-top-margin">
                                        <ul class="list-unstyled">
                                            <li class="freeapp"><a href="#">
                                                <img src="@Url.Content("~/images/mtt-images/free-app-img.png")" alt=""></a></li>
                                            <li><a href="#">
                                                <img src="@Url.Content("~/images/mtt-images/app-store.png")" alt="app-store"></a></li>
                                            <li><a href="#">
                                                <img src="@Url.Content("~/images/mtt-images/android-img.png")" alt="android-img"></a></li>
                                            @if (Session[HomeCareLibrary.Constants.SessionConstants.PROMO_CODE] != null)
                                            {
                                                <li class="promocode">Promo Code:  <small>@Session[HomeCareLibrary.Constants.SessionConstants.PROMO_CODE]</small></li>
                                            }
                                        </ul>
                                    </div>
                                </div>
                                <!-- /.navbar-collapse -->
                            </nav>

                        </div>
                    }
                    <script type='text/javascript' src="@Url.Content("~/js/jquery.js")"></script>
                    <div id="divtopHomecarelibrary">
                        @RenderBody()
                    </div>


                    <div class="col-lg-9 col-sm-9 right_part" style="display: none;" id="divbottomtaskstips">

                        <!----------------------------------
            Task-tab ,  Tips-tab,  Idea-tab
            -------------------------------->
                        <div id="wait_tasktipsideas" style="display: none; width: 100%; z-index: 999; height: 100%; position: absolute; top: 0; bottom: 0; left: 0; right: 0; padding: 2px; background-color: rgba(0, 0, 0, 0.4);">
                            <div style="width: 86px; margin: 27% auto 0px;">
                                <img style="" src='@Url.Content("~/images/demo_wait.gif")'  /><br>
                                Loading..
                            </div>
                        </div>
                        <div id="divTasks">
                        </div>
                        <div id="divTips">
                        </div>
                        <div id="divIdeas">
                        </div>
                        <div id="divTaskDetail">
                        </div>
                        <div id="divTaskCustomize">
                        </div>
                        <div id="divTaskCreate">
                        </div>

                        <!----------------------------------
            Extras-tab
            -------------------------------->
                        <div style="display: none;" class="tab-pages extras-tab">
                            <div class="mobile-top-head ">
                                <div class="ideas-mobile-head mtt-head-mobile">
                                    <h3>Extras</h3>
                                    <div class="top-btn-per clearfix">
                                        <div class="back-button" id="back-button">
                                            <a href="#">
                                                <img src="@Url.Content("~/images/mtt-images/back-mob-btn.png")" alt="back-mob-btn" class="back-mob-btn">
                                            </a>
                                        </div>
                                        <div class="ques-button">
                                            <a href="#">
                                                <!--<img alt="ques-btn" src="images/personalization-images/ques-btn.png" class="ques-bt">-->
                                                <img alt="ques-btn" src="@Url.Content("~/images/mtt-images/mobques-btn.png")" class="mobques-bt">
                                            </a>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="main-content">
                                <div class="mtt-bg">

                                    <div class="top-icon-admin-extra clearfix">
                                        <div class="top-left-panel">
                                            <img src="@Url.Content("~/images/mtt-images/icon-back-top.png")" alt="">
                                        </div>
                                        <div class="top-right-panel">
                                            <img src="@Url.Content("~/images/mtt-images/icon-ques-top.png")" alt="">
                                        </div>
                                    </div>

                                    <div class="group-mtt-outer">
                                        <div class="extras-page-content clearfix">
                                            <p class="topextras-txt">Get more from your  <span class="Bottom-phone">Personal Home Manager . . .</span> </p>
                                            <ul class="list-unstyled list-inline extras-page-data">
                                                <li><a href="@Url.Action("UpdatePersonalization", "Personalization")">
                                                    <div class="image-bg-extras Per-bg-extra"><span>Personalize</span> </div>
                                                </a></li>
                                                <li><a href="@Url.Action("Add", "CustomTasks")">
                                                    <div class="image-bg-extras custom-bg-extra"><span>Add Custom Tasks</span> </div>
                                                </a></li>
                                                <li><a href="@Url.Action("AddHome", "Personalization")">
                                                    <div class="image-bg-extras home-bg-extra"><span>Add a Home</span> </div>
                                                </a></li>
                                                <li><a href="@Url.Action("Delete", "CustomTasks")">
                                                    <div class="image-bg-extras delete-bg-extra"><span>Deleted Tasks</span> </div>
                                                </a></li>
                                                <li><a href="@Url.Action("Index", "Home")">
                                                    <div class="image-bg-extras homecare-bg-extra"><span>Home Care Library</span> </div>
                                                </a></li>
                                                <li><a href="@Url.Action("SpecialFeatures", "Extras")">
                                                    <div class="image-bg-extras special-bg-extra"><span>Special Features</span> </div>
                                                </a></li>
                                                <li class="last-li-extras"><a href="@Url.Action("AskWizard", "Home")">
                                                    <div class="image-bg-extras ask-bg-extra"><span>Ask-a-Wizard</span> </div>
                                                </a></li>
                                            </ul>
                                             
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!----------------------------------
            Admin-tab
            -------------------------------->
                        <div style="display: none;" class="tab-pages admin-tab">
                            <div class="mobile-top-head ">
                                <div class="ideas-mobile-head mtt-head-mobile">

                                    <h3>Admin</h3>
                                    <div class="top-btn-per clearfix">
                                        <div class="back-button" id="back-button">
                                            <a href="#">
                                                <img src="@Url.Content("~/images/mtt-images/back-mob-btn.png")" alt="back-mob-btn" class="back-mob-btn">
                                            </a>
                                        </div>
                                        <div class="ques-button">
                                            <a href="#">
                                                <!--<img alt="ques-btn" src="images/personalization-images/ques-btn.png" class="ques-bt">-->
                                                <img alt="ques-btn" src="@Url.Content("~/images/mtt-images/mobques-btn.png")" class="mobques-bt">
                                            </a>
                                        </div>
                                    </div>
                                </div>
                            </div>



                            <div class="main-content">
                                <div class="mtt-bg">

                                    <div class="top-icon-admin-extra clearfix">
                                        <div class="top-left-panel">
                                            <img src="@Url.Content("~/images/mtt-images/icon-back-top.png")" alt="">
                                        </div>
                                        <div class="top-right-panel">
                                            <img src="@Url.Content("~/images/mtt-images/icon-ques-top.png")" alt="">
                                        </div>
                                    </div>

                                    <div class="group-mtt-outer">
                                        <div class="extras-page-content clearfix">
                                            <p class="topextras-txt">Change admin features, <span class="Bottom-phone">get help, and more . . .</span></p>
                                           
                                             @if (Session[HomeCareLibrary.Constants.SessionConstants.MODE] != null && Session[HomeCareLibrary.Constants.SessionConstants.MODE].ToString() != HomeCareLibrary.Constants.ApplicationModeConstants.ANDROID_APP)
                                             {
                                                     
                                                <ul class="list-unstyled admin-page-data">
                                                    <li><a class="admintab-img welcome-img-admintab" href="@Url.Action("welcomeimage", "admin")">
                                                        <span>Welcome Image </span>
                                                    </a></li>
                                                    <li><a href="@Url.Action("monthlyreminder", "admin")" class="admintab-img monthly-img-admintab">
                                                        <span>Monthly Reminder </span>
                                                    </a></li>

                                                    <li><a class="admintab-img promocode-img-admintab" href="@Url.Action("promocode", "admin")">
                                                        <span>Promo Code</span>
                                                    </a></li>
                                                    @if (Session[HomeCareLibrary.Constants.SessionConstants.SPONSOR_DETAILS] != null && Session[HomeCareLibrary.Constants.SessionConstants.IS_PROMO_CODE_ACTIVE]!=null )
                                                    {

                                                        if(Session[HomeCareLibrary.Constants.SessionConstants.IS_PROMO_CODE_ACTIVE].ToString() == "foundActive")
                                                        
                                                        {
                                                            var getSponsorDetail = (HomeCareLibrary.Core.Dtos.SponsorInputs345xDto)Session[HomeCareLibrary.Constants.SessionConstants.SPONSOR_DETAILS];
                                                           
                                                        <li><a class="admintab-img imperial-img-admintab" href="@Url.Action("complimentsof", "admin")">
                                                            <span>About Me </span>
                                                        </a></li>
                                                    }
                                                    }
                                                    <li><a class="admintab-img help-img-admintab" href="@Url.Action("helpfaqs", "admin")">
                                                        <span>Help & FAQs </span>
                                                    </a></li>
                                                    <li><a class="admintab-img feedback-img-admintab" href="@Url.Action("feedback", "admin")">
                                                        <span>Feedback</span>
                                                    </a></li>
                                                    <li><a class="admintab-img user-img-admintab" href="@Url.Action("adminchangelogin", "personalization")">
                                                        <span>Other Device Login </span>
                                                    </a></li>
                                                    <li><a class="admintab-img about-img-admintab" href="@Url.Action("aboutapp", "admin")">
                                                        <span>About This App </span>
                                                    </a></li>
                                                </ul>
                                             }
                                             else
                                             {
                                               
                                                 <ul class="list-unstyled admin-page-data">
                                                    <li><a class="admintab-img welcome-img-admintab" href="@Url.Action("welcomeimage", "admin")">
                                                        <span>Welcome Image </span>
                                                    </a></li>
                                                    <li><a href="@Url.Action("monthlyreminder", "admin")" class="admintab-img monthly-img-admintab">
                                                        <span>Monthly Reminder </span>
                                                    </a></li>
                                                    <li><a href="javascript:void(0);" class="admintab-img delete-img-admintab">
                                                        <span>Turn-Off / Delete </span>
                                                    </a></li>


                                                    @*@if (Session[HomeCareLibrary.Constants.SessionConstants.MODE] != null)
                                                    {

                                                        if (Session[HomeCareLibrary.Constants.SessionConstants.MODE].ToString() == HomeCareLibrary.Constants.ApplicationModeConstants.IPHONE_APP || Session[HomeCareLibrary.Constants.SessionConstants.MODE].ToString() == HomeCareLibrary.Constants.ApplicationModeConstants.ANDROID_APP || Session[HomeCareLibrary.Constants.SessionConstants.MODE] == HomeCareLibrary.Constants.ApplicationModeConstants.IPAD_APP)
                                                    {
                           <li><a class="admintab-img promocode-img-admintab" href="@Url.Action("promocode", "admin")">
                               <span>Promo Code</span>
                           </a></li>
                                                 }
                            }*@
                                                     @if (Session[HomeCareLibrary.Constants.SessionConstants.SPONSOR_DETAILS] != null)
                                                    {

                                                        {
                                                            var getSponsorDetail = (HomeCareLibrary.Core.Dtos.SponsorInputs345xDto)Session[HomeCareLibrary.Constants.SessionConstants.SPONSOR_DETAILS];
                                                          
                                                        <li><a class="admintab-img imperial-img-admintab" href="@Url.Action("complimentsof", "admin")">
                                                            <span>About Me</span>
                                                        </a></li>
                                                        }
                                                    }


                                                    <li><a class="admintab-img feedback-img-admintab" href="@Url.Action("feedback", "admin")">
                                                        <span>Feedback</span>
                                                    </a></li>
                                                   
                                                    <li><a class="admintab-img help-img-admintab" href="@Url.Action("helpfaqs", "admin")">
                                                        <span>Help </span>
                                                    </a></li>
                                                    <li><a class="admintab-img about-img-admintab" href="@Url.Action("aboutapp", "admin")">
                                                        <span>About This App </span>
                                                    </a></li>


                                                    <li><a class="admintab-img user-img-admintab" href="@Url.Action("adminchangelogin", "personalization")">
                                                        <span>Username & Password </span>
                                                    </a></li>

                                                </ul>
                                             }
                                        </div>

                                    </div>
                                </div>
                            </div>
                        </div>



                    </div>
                    @if (Session[HomeCareLibrary.Constants.SessionConstants.USER_ID] != null && Session[HomeCareLibrary.Constants.SessionConstants.USER_ID].ToString() != "-1")
                    {
                        
                        
@*Footer not show in case of Android App. *@
                        if (Session[HomeCareLibrary.Constants.SessionConstants.MODE] == null || Session[HomeCareLibrary.Constants.SessionConstants.MODE].ToString() == HomeCareLibrary.Constants.ApplicationModeConstants.IPHONE_APP || Session[HomeCareLibrary.Constants.SessionConstants.MODE].ToString() == HomeCareLibrary.Constants.ApplicationModeConstants.IPAD_APP)
                        {
                        <div class="mobile-menu navbar-fixed-bottom mobileMenu">
                            <div class="menu">
                                <ul class="nav navbar-nav">
                                    <li class="active"><a id="mobtasks" class="ui-link"><span class="task-link"></span>
                                        <p>Tasks</p>
                                    </a></li>
                                    <li><a id="mobtips" class="ui-link"><span class="tips-link"></span>
                                        <p>Tips</p>
                                    </a></li>
                                    <li><a id="mobideas" class="ui-link"><span class="ideas-link"></span>
                                        <p>Ideas</p>
                                    </a></li>
                                    <li><a id="mobextras" class="ui-link"><span class="extra-link"></span>
                                        <p>Extras</p>
                                    </a></li>
                                    <li><a id="mobadmin" class="ui-link"><span class="admin-link"></span>
                                        <p>Admin</p>
                                    </a></li>
                                </ul>
                            </div>
                        </div>
                        }
                    }

                </div>

            </div>

        </div>
        <footer>
            @*<input type="hidden" value="@Session[HomeCareLibrary.Constants.SessionConstants.MODE]" id="hdnMasterSessionValue" />*@
        </footer>
    </div>


    @Scripts.Render("~/Scripts/BundledScripts")

    @RenderSection("script", required: false)




</body>
</html>
